home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / help_ai / isinf < prev    next >
Text File  |  1995-02-18  |  607b  |  28 lines

  1. isinf:
  2.  
  3. Syntax: isinf ( A )
  4.  
  5. Description:
  6.  
  7.     isinf returns TRUE (1) if A is Infinity (according to
  8.     IEEE-754). If A is a vector or a matrix the test is performed
  9.     element-by-element, and a matrix the same size as A is
  10.     returned. 
  11.  
  12.     Infs can usually be created by attempting to divide by zero. 
  13.  
  14. Example:
  15.  
  16.         > a = [1, 2, 3; 4, 5, inf(); 7, 8, 9]
  17.          a =
  18.                 1          2          3  
  19.                 4          5        inf  
  20.                 7          8          9  
  21.         > isinf (a)
  22.                 0          0          0  
  23.                 0          0          1  
  24.                 0          0          0  
  25.  
  26.  
  27. See Also: isnan, finite
  28.